//js配置
require.config( {
	baseUrl : "",
	paths : {
		"jquery" : "js/jquery-1.8.0",
		"xx566.index.detail" : "xx566/index.detail",
		"jquery.artDialog" : "js/jquery.artDialog",
		"xx566.index" : "xx566/index"
	},
	shim : {
		"jquery.artDialog" : {
			deps : [ "jquery" ],
			exports : "artDialog"
		}
	}
});
//文章详情
require( [ "jquery", "xx566.index.detail", "xx566.index" ], function($, detail,
		index) {
	$("#msgpid").val(0);
	$("#msg_submit").live("click", detail.addMsg);
	$("a[rel^='follow']").live("click", detail.followMsg);
	$("a[id^='cancel-comment-reply-link']").live("click", detail.cancleMsg);
	$("#xx566_qrcode").bind(index.qrcode);
});
//首页搜索
require( [ "jquery", "xx566.index" ], function($, index) {
	$("#search_btn").click(index.search);
	$("a[id^='index_cate']").click(index.category);
});